var data = [
  {
    field1: '333',
  },
  {
    field1: '333',
  },
  {
    field1: '333',
  },
  {
    field1: '333',
  },
  {
    field1: '333',
  },
  {
    field1: '333',
  },
  {
    field1: '333',
  },
  {
    field1: '333',
  },
  {
    field1: '333',
  },
  {
    field1: '333',
  },
  {
    field1: '333',
  },
  {
    field1: '333',
  },
  {
    field1: '333',
  }
]
function initTable() {
  var $table = $('#device_table');
  $table.bootstrapTable({
    data: data,
    pagination: true,
    pageSize: 1
  });
}

function clickOperate() {
  return '<div class="operate-del">'+
            '<i class="iconfont icon-middle icon-jilu3 detail-color fs-12"></i>'+
            '<span class="ml5">详情</span>'+
          '</div>'+
          '<div class="operate-del">'+
            '<i class="iconfont icon-middle icon-xiugai1 edit-color fs-12"></i>'+
            '<span class="ml5">修改</span>'+
          '</div>'+
          '<div class="operate-del">'+
            '<i class="iconfont icon-middle icon-shanchu trash-color fs-12"></i>'+
            '<span class="ml5">删除</span>'+
          '</div>';
}

$(function () {
  // 提示正确错误信息
  layer.open({
    type: 1,
    title: false,
    closeBtn: 0,
    shadeClose: true,
    skin: 'yourclass',
    content: $('#alert_msg')
  });
  initTable();
});